#include "adddocument.h"

addDocument::addDocument(QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);

	connect(ui.addButton,		SIGNAL(clicked()),		this,	SLOT(returnCode()));
	connect(ui.exitButton,		SIGNAL(clicked()),		this,	SLOT(reject()));
}

addDocument::~addDocument()
{

}

void addDocument::returnCode()
{
	selectedRows=ui.listWidget->selectedItems();
	done(selectedRows.count());
}
